package com.thomas.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**   
* @Description: 网站动态更新电影信息实体
* @author thomas_liu  
* @date 2017年10月24日 下午9:54:34 
* @version V1.0   
*/
@Entity
@Table(name="t_info")
public class WebSiteInfo {
	
	@Id
	@GeneratedValue
	private Integer id;//编号
	
	@ManyToOne
	@JoinColumn(name="filmId")
	private Film film;//电影
	
	@ManyToOne
	@JoinColumn(name="webSiteId")
	private WebSite webSite;//网站
	
	@Column(length=1000)
	private String info;//信息
	
	@Column(length=500)
	private String url;//具体网址
	
	private Date publishDate;//发布日期

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the film
	 */
	public Film getFilm() {
		return film;
	}

	/**
	 * @param film the film to set
	 */
	public void setFilm(Film film) {
		this.film = film;
	}

	/**
	 * @return the webSite
	 */
	public WebSite getWebSite() {
		return webSite;
	}

	/**
	 * @param webSite the webSite to set
	 */
	public void setWebSite(WebSite webSite) {
		this.webSite = webSite;
	}

	/**
	 * @return the info
	 */
	public String getInfo() {
		return info;
	}

	/**
	 * @param info the info to set
	 */
	public void setInfo(String info) {
		this.info = info;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the publishDate
	 */
	public Date getPublishDate() {
		return publishDate;
	}

	/**
	 * @param publishDate the publishDate to set
	 */
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	
	
}
